
<div class="menu outers">
    <div class="inners">
        <ul>
            <?php
            $controller = $this->controller;
            $action = $controller->action;
            foreach ($items as $url => $caption):
                $temp = split('/', $url);
                $selected = ('backend/' . $temp[0] == $controller->uniqueID) ? ' class="selected"' : '';
            ?>
            <li<?php echo $selected; ?>><a href="<?php echo $controller->createUrl($url); ?>"><span><?php echo $caption; ?></span></a></li>
            <?php endforeach; ?>
        </ul>
    </div>
</div>